<template>
    <view style="padding: 20rpx">
        <!-- 地址路径增加时间戳 防止硬缓存 -->
        <web-view :src="data" :update-title="false" ></web-view>
    </view>
</template>

<script>
export default {
    beforeCreate() {

    },
    data() {
        return {
            data: '',
            fileName:""
        }
    },
    computed: {

    },

    methods: {
  
    },
    onLoad(option) {
        console.log(option,"--27")
        const fileInfo = JSON.parse(decodeURIComponent(option.fileInfo)) || {}
        this.data = `${fileInfo.url}&hyTitle=${fileInfo.fileName}#page${fileInfo.pageNo??0}`
        this.fileName=fileInfo.fileName
        uni.setNavigationBarTitle({ title: fileInfo.fileName })
    }
}
</script>

<style></style>
